// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const brandList = (data) => {
    return service({
        url: '/brand/brand/brandList',
        method: 'post',
        data
    })
};
export const updateByid = (data) => {
    return service({
        url: '/brand/brand/updatesByid',
        method: 'post',
        data
    })
};
export const deleteById = (id) => {
    return service({
        url: '/brand/brand/deleteById/'+id,
        method: 'delete',
    })
};
export const insertBrand = (data) => {
    return service({
        url: '/brand/brand/insertBrand/',
        method: 'post',
        data
    })
};
export const batchDel = (data) => {
    return service({
        url: '/brand/brand/batchDel/',
        method: 'post',
        data
    })
};
